class School {

    String name = ''
    Date start = new Date()
    Date end = new Date()
    String subDomain = ''
    String domain = ''
    boolean enable = true //是否启用
    //  地区
    String area
    long hostId

    static constraints = {
		name(blank: false, size:0..250)
 		start()
        end()
        subDomain(nullable:false,blank:false)
        area(nullable:true,blank:true)
        domain(nullable:false,blank:false)
        hostId(nullable:false)
    }

    String toString (){
        "$name"
    }
}
